using System;
using System.Collections.Generic;
using System.Text;
using Webcar.Interface;
namespace Webcar.BLL
{
    public class PhotoFactory
    {
        public static IShowPhoto CreateInstance(string type)
        {
            if (type == "car")
                return new CarPhoto();
            if (type == "driver")
                return new DriverPhoto();
            if (type == "sec")
                return new SecPhoto();

            return null;
        }
    }
}
